<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<c:choose>
	<c:when test="${Page == 'IN' }">
		<c:set var="successMsg" value="상담이 등록 되었습니다."/>
		<c:set var="errorMsg" value="상담 등록 실패!"/>
		<c:set var="moveUrl"  value="${pageContext.request.contextPath }/intranet/main/invalidate.jsp?url=${pageContext.request.contextPath }/Coun/CounList.clamp"/>
	</c:when>
	<c:when test="${Page == 'UP' }">
		<c:set var="successMsg" value="상담이 수정 되었습니다."/>
		<c:set var="errorMsg" value="상담 수정 실패!"/>
		<c:set var="moveUrl"  value="${pageContext.request.contextPath }/intranet/main/invalidate.jsp?url=${pageContext.request.contextPath }/Coun/CounList.clamp"/>
	</c:when>
</c:choose>

<c:choose>
	<c:when test="${Flag == '1' }">
		<script>
			alert("${successMsg}");
			location.href="${moveUrl}";
		</script>
	</c:when>
	<c:otherwise>
		<script>
			alert("${errorMsg}");
			history.back();
		</script>
	</c:otherwise>
</c:choose>

